package cn.dmrliu.edu.publish.service.impl;

import cn.dmrliu.edu.publish.bean.TrafficVisitorTypeStats;
import cn.dmrliu.edu.publish.mapper.TrafficVisitorTypeStatsMapper;
import cn.dmrliu.edu.publish.service.TrafficVisitorTypeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficVisitorTypeStatsServiceImpl implements TrafficVisitorTypeStatsService {

    @Autowired
    TrafficVisitorTypeStatsMapper trafficVisitorTypeStatsMapper;

    @Override
    public List<TrafficVisitorTypeStats> getVisitorPerType(Integer date) {
        return trafficVisitorTypeStatsMapper.selectVisitorPerType(date);
    }
}
